package com.mercycrazy.springframework.aop;

/**
 * ClassFilter 接口定义匹配类，用于帮助切点找到给定的接口和目标类
 *
 * @author <a href="mailto:1443424326@qq.com">mercycrazy</a>
 * @since 2022-11-28
 */
public interface ClassFilter {

    /**
     * Should the pointcut apply to the given interface or target class?
     *
     * @param clazz the candidate target class
     * @return whether the advice should apply to the given target class
     */
    boolean matches(Class<?> clazz);
}
